package org.random;

import java.util.Random;

public class RandomDemo {
    public static void main(String[] args) {
        Random random = new Random();
        for (int i=1;i<20;i++) {
            int data = random.nextInt(10); //生成0-9之间的随机数
            System.out.println(data);
        }
    }
}
